import { NestExpressApplication } from '@nestjs/platform-express'

class GlobalService {
  private _app: NestExpressApplication | undefined = undefined
  private _appUrl: string = ""
  get app(): NestExpressApplication {
    return this._app
  }
  set app(app: NestExpressApplication) {
    this._app = app
  }

  get appUrl(): string {
    return this._appUrl
  }
  set appUrl(url: string) {
    this._appUrl = url
  }
}

const IGlobal = new GlobalService()

export default IGlobal